package com.tsd.system.vo;


import com.github.binarywang.wxpay.config.WxPayConfig;

/**
 * @ClassName: 微信支付配置
 * @Description: 微信支付参数配置
 * @Author: Hillpool
 * @Date: 2022/7/8 10:04
 * @Version: 1.0
 */
public class WxPaySetting {

    public static final String SETTING_CODE_WX_PAY = "wx_pay_setting";

    public String sys_setting_sid;

    /**
     * 微信支付商户kid
     */
    private String wxpay_mch_id;
    /**
     * 微信支付商户key
     */
    private String wxpay_mch_key;
    /**
     * 微信支付完成通知接收URL
     */
    private String wxpay_notify_url;
    /**
     * 微信支付证书存放路径
     */
    private String wxpay_key_path;
    /**
     * H5支付网站名称
     */
    private String wxpay_h5_wap_name;
    /**
     * H5支付网站URL
     */
    private String wxpay_h5_wap_url;

    private WxPayConfig config;

    public String getSys_setting_sid() {
        return sys_setting_sid;
    }

    public void setSys_setting_sid(String sys_setting_sid) {
        this.sys_setting_sid = sys_setting_sid;
    }

    public String getWxpay_mch_id() {
        return wxpay_mch_id;
    }

    public void setWxpay_mch_id(String wxpay_mch_id) {
        this.wxpay_mch_id = wxpay_mch_id;
    }

    public String getWxpay_mch_key() {
        return wxpay_mch_key;
    }

    public void setWxpay_mch_key(String wxpay_mch_key) {
        this.wxpay_mch_key = wxpay_mch_key;
    }

    public String getWxpay_notify_url() {
        return wxpay_notify_url;
    }

    public void setWxpay_notify_url(String wxpay_notify_url) {
        this.wxpay_notify_url = wxpay_notify_url;
    }

    public String getWxpay_key_path() {
        return wxpay_key_path;
    }

    public void setWxpay_key_path(String wxpay_key_path) {
        this.wxpay_key_path = wxpay_key_path;
    }

    public String getWxpay_h5_wap_name() {
        return wxpay_h5_wap_name;
    }

    public void setWxpay_h5_wap_name(String wxpay_h5_wap_name) {
        this.wxpay_h5_wap_name = wxpay_h5_wap_name;
    }

    public String getWxpay_h5_wap_url() {
        return wxpay_h5_wap_url;
    }

    public void setWxpay_h5_wap_url(String wxpay_h5_wap_url) {
        this.wxpay_h5_wap_url = wxpay_h5_wap_url;
    }

    public WxPayConfig getConfig() {
        return config;
    }

    public void setConfig(WxPayConfig config) {
        this.config = config;
    }

    public void setConfigAppId(String appId) {
        WxPayConfig config = this.getConfig();
        if (config != null) {
            config.setAppId(appId);
        }
        this.setConfig(config);
    }

    public void setConfigTradeType(String tradeType) {
        WxPayConfig config = this.getConfig();
        if (config != null) {
            config.setTradeType(tradeType);
        }
        this.setConfig(config);
    }
}
